package org.jdemo.commons.configuration;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.XMLConfiguration;

/**
 * LoadXml
 *
 * @author longlin(longlin@cyou-inc.com)
 * @date 2014/9/16
 * @since V1.0
 */
public class LoadXml {
    public static void main(String[] args) throws ConfigurationException {
        XMLConfiguration config = new XMLConfiguration("test.xml");
        System.out.println(config.getString("database.url"));
        System.out.println(config.getString("database.port"));
    }
}
